package com.zoffy.zoffyapi.service;

import com.zoffy.zoffyapi.model.dto.user.UserInfoUpdateRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zoffy.zoffyapi.model.vo.AkSkRequest;
import com.zoffy.zoffyapi.model.vo.AkSkVo;
import com.zoffy.zoffyapi.model.vo.UserVo;

import com.zoffy.zoffyapicommon.model.entity.User;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author 86170
* description 针对表【user(用户)】的数据库操作Service
* createDate 2023-12-05 19:04:18
*/
public interface UserService extends IService<User> {
    /**
     *
     * @param userAccount 用户账号
     * @param userPassword 用户密码
     * @param checkPassword 确认密码
     * @return 用户id
     */
    long userRegister(String userAccount, String userPassword, String checkPassword);
    UserVo userLogin(HttpServletRequest request, String userAccount, String userPassword);
    UserVo getCurrentUserVo(HttpServletRequest request);
    User getCurrentUser(HttpServletRequest request);
    UserVo updateUserInfo(HttpServletRequest request, UserInfoUpdateRequest userInfoUpdateRequest);

    AkSkVo getAkSk(HttpServletRequest request, AkSkRequest akSkRequest);
    AkSkVo updateAkSk(HttpServletRequest request, AkSkRequest akSkRequest);

}
